<?php include('style/header-1.php');//hieronder komt de linkerbalk met artikelen ?> 
<?php include('style/body-2.php');//hieronder het midden van de pagina ?>

<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr><td>
<form name="form1" method="post" action="article_confirm.php">
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>

<?
include 'config.php';

// productgegevens ophalen uit de database
$artikel=$_GET['id'];

$query  = "SELECT * FROM artikelen WHERE idartikelen = '$artikel'";
$result = mysql_query($query);
$row = mysql_fetch_row($result);

$idartikelen = $row['0'];
$name = $row['1'];
$price = $row['2'];
$name2 = $row['3'];
$name3 = $row['5'];
$value = $row['4'];
$description = $row['6'];
$imagefilename = $row['7'];
$category = $row['8'];
$subcategory1 = $row['9'];
$subcategory2 = $row['10'];
$subcategory3 = $row['11'];
$korting = $row['12'];
?>

<td colspan="3"><strong>Gegevens veranderen</strong></td>
</tr>
<tr>
<td width="78">ID</td>
<td width="6">:</td>
<td width="294"><input name="id" type="text" id="id" value="<? echo $idartikelen; ?>"></td>
</tr>
<tr>
<td width="78">Naam</td>
<td width="6">:</td>
<td width="294"><input name="naam" type="text" id="naam" value="<? echo $name; ?>"></td>
</tr>
<tr>
<td>prijs</td>
<td>:</td>
<td><input name="prijs" type="text" id="prijs" value="<? echo $price; ?>"></td>
</tr>
<tr>
<td>name 2</td>
<td>:</td>
<td><input name="naam 2" type="text" id="naam 2" value="<? echo $name2; ?>"></td>
</tr>
<tr>
<td>naam 3</td>
<td>:</td>
<td><input name="naam 3" type="text" id="naam 3" value="<? echo $name3; ?>"></td>
</tr>
<tr>
<td>value</td>
<td>:</td>
<td><input name="value" type="text" id="value" value="<? echo $value; ?>"></td>
</tr>
<tr>
<td>discription</td>
<td>:</td>
<td><input name="discription" type="text" id="description" value="<? echo $description; ?>"></td>
</tr>
<tr>
<td>imagefilename</td>
<td>:</td>
<td><input name="imagefilename" type="text" id="imagefilename" value="<? echo $imagefilename; ?>"></td>
</tr>
<tr>
<td>category</td>
<td>:</td>
<td><input name="category" type="text" id="category" value="<? echo $category; ?>"></td>
</tr>
<tr>
<td>subcategory1</td>
<td>:</td>
<td><input name="subcategory1" type="text" id="subcategory1" value="<? echo $subcategory1; ?>"></td>
</tr>
<tr>
<td>subcategory2</td>
<td>:</td>
<td><input name="subcategory2" type="text" id="subcategory2" value="<? echo $subcategory2; ?>"></td>
</tr>
<tr>
<td>subcategory3</td>
<td>:</td>
<td><input name="subcategory3" type="text" id="subcategory3" value="<? echo $subcategory3; ?>"></td>
</tr>
<tr>
<td>korting</td>
<td>:</td>
<td><input name="korting" type="text" id="korting" value="<? echo $korting; ?>"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" VARCHAR="Submit"><input type="reset" name="Reset" VARCHAR="Reset"></td>
</tr>
</table>
</form></td>

</tr>
</table>


<?php include('style/body-3.php');//hieronder de rechterbalk ?>
<?php include('style/footer-4.php');?>
